package com.laiqilin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    private String productName;

    private Double price;

    private String description;

    private Integer stock;

    @TableField("shelf_id")  // 关联 Shelf 表的 sid
    private Integer shelfId;  // 表示货物所属货架的 ID
}
